home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _9F158DA7E0F7437FB64A042C84EE4AC1 < prev    next >
Encoding:
Text File  |  2004-07-20  |  6.2 KB  |  251 lines

  1. // $TEXTURE1
  2. // $TEX1OPTIONSFILE
  3. // $DIRT
  4. // $DIRTOPTIONSFILE
  5. // $BROKEN
  6. // $BROKENOPTIONSFILE
  7. // $NORMALS
  8. // $NORMALSOPTIONSFILE
  9. // $SPECPOW
  10.  
  11. Shader()
  12. {
  13.     ShaderQuality(5)
  14.     Pass()
  15.     {
  16.         // lighting()
  17.         VertexShader("CarLB_CmCd_Bump_ps20.vsh")
  18.         Pixelshader("CarLB_CmCd_Bump_ps20.psh")
  19.  
  20.         !include("__Tex1.mtt")
  21.         !include("__Dirt.mtt")
  22.         !include("__CloudsVS.mtt")
  23.         !include("__TerrainColormapVS.mtt")
  24. //        !include("__TerrainColormapSmallVS.mtt")
  25. //        !include("__DynamicCubeMap.mtt")
  26.         !include("__CubeMap.mtt")
  27.         !include("__DirtNormalsMap.mtt")
  28.         !include("__Broken.mtt")        
  29.  
  30.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // RGB - lights state, A - dirt level
  31.     }
  32.     Cull("cw")
  33. }
  34.  
  35. shader()
  36. {
  37.     ShaderQuality(3)
  38.     pass()
  39.     {
  40.         //Lighting()
  41.         Pixelshader("CarLB_CmCd_ps14.psh")
  42.         Vertexshader("CarLB_CmCd_ps14.vsh")
  43.  
  44.         !include("__tex1.mtt")
  45.         !include("__Dirt.mtt")
  46.         !include("__TerrainColormapVS.mtt")
  47. //        !include("__TerrainColormapSmallVS.mtt")
  48.         !include("__CloudsVS.mtt")
  49. //        !include("__DynamicCubeMap.mtt")
  50.         !include("__CubeMap.mtt")
  51.         !include("__Broken.mtt")        
  52.  
  53.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
  54.     }
  55.     Cull("cw")
  56. }
  57.  
  58. shader()
  59. {
  60.     ShaderQuality(2)
  61.     pass()
  62.     {
  63.         Pixelshader("CarBR_Cm_ps11.psh")
  64.         Vertexshader("CarBR_Cm_ps11.vsh")
  65.  
  66.         !include("__tex1.mtt")
  67.         !include("__Dirt.mtt")
  68.         !include("__TerrainColormapSmallVS.mtt")
  69. //        !include("__DynamicCubeMap.mtt")        
  70.         !include("__CubeMap.mtt")        
  71.  
  72.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
  73.     }
  74.     pass()
  75.     {
  76.         //Lighting()
  77.         Pixelshader("CarLB_pass2_ps11.psh")
  78.         Vertexshader("CarLB_pass2_ps11.vsh")
  79.  
  80.         !include("__Broken.mtt")
  81.         !include("__TerrainColormapSmallVS.mtt")        
  82.  
  83.         BlendFunc("src_alpha", "inv_src_alpha")
  84.     }
  85.  
  86.     Cull("cw")
  87.  
  88. shader()
  89. {
  90.     ShaderQuality(1)
  91.     pass()
  92.     {
  93.         Pixelshader("CarLB_ps11.psh")
  94.         Vertexshader("CarLB_ps11.vsh")
  95.  
  96.         !include("__tex1.mtt")
  97.         !include("__Dirt.mtt")
  98.         !include("__TerrainColormapSmallVS.mtt")
  99.         !include("__Broken.mtt")        
  100.  
  101.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
  102.     }
  103.     Cull("cw")
  104. }
  105.  
  106.  
  107. //=========================== GF2 ======================================
  108. shader()
  109. {
  110.     ShaderQuality(2)
  111.     pass()
  112.     {
  113.         Lighting()
  114.         tmu()
  115.         {
  116.             TexGen("planar")
  117.             TexMod("scale", "const", 0.00001, 0, 0, "const", 0.00001, 0, 0)
  118.             texture()
  119.             {
  120.                 Image(%colortexturesmall)
  121.                 addressfunc("clamp", "clamp", "clamp")
  122.             }
  123.             ColorOp("mul_add", "texture_a", "current", "diffuse_a")
  124.             AlphaOp("arg1", "texture_a", "current", "current")
  125.         }
  126.         AmbientColor(0.0, 0.0, 0.0, 1.000)
  127.         DiffuseColor(%daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a)
  128.         SpecularColor(0.0, 0.0, 0.0, 1.000)
  129.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  130.         SpecularPow(0.0)
  131.                
  132.     }
  133.     lightpass()
  134.     !include("spot_spotmap.mtt")
  135.  
  136.     pass()
  137.     {
  138.         Lighting()
  139.         tmu()
  140.         {
  141.             Texture()
  142.             {
  143.                 Mapchannel(0)
  144.                 Image(DIRT_GF2)
  145.                 !include(DIRTOPTIONSFILE)
  146.             }
  147.             ColorOp("arg1", "tfactor", "current", "current")
  148.             AlphaOp("mul", "tfactor_a", "texture_a", "current")       
  149.         }
  150.         tmu()
  151.         {
  152.             Texture()
  153.             {
  154.                 Mapchannel(0)
  155.                 Image(TEXTURE1)
  156.                 !include(TEX1OPTIONSFILE)
  157.             }
  158.             ColorOp("blend_current_alpha", "current", "texture", "current")
  159.         }
  160.  
  161.         tfactor(%dirtcolor_r, %dirtcolor_g, %dirtcolor_b, 1.0)
  162.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0)
  163.    
  164.         AmbientColor(0.0, 0.0, 0.0, 1.0)
  165.         DiffuseColor(0.0, 0.0, 0.0, 1.0)
  166.         SpecularColor(%sunvisibility, %sunvisibility, %sunvisibility, 1.000)
  167.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  168.         SpecularPow(SPECPOW)                
  169.  
  170.         BlendFunc("zero", "src_color")
  171.     }
  172.     pass()
  173.     {
  174.         Lighting()
  175.         tmu()
  176.         {
  177.             TexGen("planar")
  178.             TexMod("scale", "const", 0.00001, 0, 0, "const", 0.00001, 0, 0)
  179.             texture()
  180.             {
  181.                 Image(%colortexturesmall)
  182.                 addressfunc("clamp", "clamp", "clamp")
  183.             }
  184.             ColorOp("mul_add", "current", "texture_a", "diffuse_a")
  185.             //AlphaOp("add", "texture_a", "diffuse_a", "current")
  186.         }
  187.         tmu()
  188.         {
  189.             Texture()
  190.             {
  191.                 Mapchannel(0)
  192.                 Image(BROKEN)
  193.                 !include(BROKENOPTIONSFILE)
  194.                 !include("__TO_Clamp&Linear.mtt")
  195.                 //!include("__TO_LODBias-100.mtt")
  196.             }
  197.             ColorOp("mul", "current", "texture", "current")
  198.             AlphaOp("arg1", "texture_a", "current", "current")
  199.         }    
  200.         AmbientColor(0.0, 0.0, 0.0, 1.000)
  201.         DiffuseColor(%daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a)
  202.         SpecularColor(0.0, 0.0, 0.0, 1.000)
  203.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  204.         SpecularPow(0.0) 
  205.         BlendFunc("src_alpha", "inv_src_alpha")
  206.     }    
  207.  
  208.     Cull("cw")
  209. }
  210. //=======================================================
  211. /*
  212. shader()
  213. {
  214.     ShaderQuality(0)
  215.     pass()
  216.     {
  217.         Lighting()
  218.         Pixelshader("CarLB_sq0.psh")
  219.         Vertexshader("Common_specular.vsh")
  220.         !include("__tex1.mtt")
  221.         !include("__Broken.mtt")        
  222.     }
  223.     Cull("cw")
  224. }
  225. */
  226. shader()
  227. {
  228.     ShaderQuality(0)
  229.     pass()
  230.     {
  231.         Lighting()
  232.         !include("__tex1.mtt")
  233.  
  234.         !include("__LightningColorsSpecGF2.mtt")  
  235.     }
  236.     pass()
  237.     {
  238.         Lighting()
  239.         !include("__Broken.mtt")
  240.  
  241.         !include("__LightningColorsSpecGF2.mtt")  
  242.         BlendFunc("src_alpha", "inv_src_alpha")
  243.     }
  244. //    lightpass()
  245. //    !include("spot_spotmap.mtt")    
  246.  
  247.     Cull("cw")
  248. }
  249.  
  250.